package com.oneandseven.dajia.controller.album;

import com.oneandseven.dajia.base.response.BaseResponse;
import com.oneandseven.dajia.service.album.IAlbumInfoService;
import com.oneandseven.dajia.service.impl.album.AlbumInfoService;
import com.oneandseven.dajia.service.impl.album.AlbumTagService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/album")
@AllArgsConstructor
public class AlbumInfoController {

    private final IAlbumInfoService albumInfoServiceService;

    @PostMapping("querybytag")
    public BaseResponse queryByTag(@RequestBody String tagCode) {
        return new BaseResponse(albumInfoServiceService.queryAll());
    }
}
